/*
 * @Author: yuki
 * @Date: 2025-11-06 11:39:30
 * @LastEditTime: 2025-11-06 19:19:21
 * @Description: 登录接口
 */
import type { Auth } from '@horoscope/shared';

import { POST } from '../request';

export const login = (data: { username: string; password: string }) => {
  return POST<Auth.ILoginResponse>('/auth/login', data);
};

export const register = (data: {
  username?: string;
  email?: string;
  password: string;
  confirmPassword: string;
}) => {
  return POST<Auth.IRegisterResponse>('/auth/register', data);
};
